<?xml version="1.0" encoding="UTF-8"?>
<!-- 
    Document   : Vender
    Created on : 6/06/2012, 08:58:50 PM
    Author     : Fabio
-->
<jsp:root version="2.1" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:webuijsf="http://www.sun.com/webui/webuijsf">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view>
        <webuijsf:page id="page1">
            <webuijsf:html id="html1">
                <webuijsf:head id="head1">
                    <webuijsf:link id="link1" url="/resources/stylesheet.css"/>
                </webuijsf:head>
                <webuijsf:body id="body1" imageURL="resources/Fondo.jpg" style="-rave-layout: grid">
                    <webuijsf:form id="form1">
                        <webuijsf:hyperlink actionExpression="#{VenderP.HPL_AUsuario1_action}" id="HPL_AUsuario1"
                            style="color: maroon; font-family: 'Verdana','Arial','Helvetica',sans-serif; font-size: 18px; font-weight: bold; left: 48px; top: 240px; position: absolute; text-decoration: none" text="Administrar Usuario"/>
                        <webuijsf:hyperlink actionExpression="#{VenderP.HPL_ASocio_action}" id="HPL_ASocio1"
                            style="color: maroon; font-family: 'Verdana','Arial','Helvetica',sans-serif; font-size: 18px; font-weight: bold; left: 48px; top: 288px; position: absolute; text-decoration: none" text="Administrar Socio"/>
                        <webuijsf:hyperlink actionExpression="#{VenderP.hyperlink2_action}" id="HPL_AProducto1"
                            style="color: maroon; font-family: 'Verdana','Arial','Helvetica',sans-serif; font-size: 18px; font-weight: bold; left: 48px; top: 336px; position: absolute; text-decoration: none" text="Administrar Producto"/>
                        <webuijsf:hyperlink actionExpression="#{VenderP.HPL_ADeposito_action}" id="HPL_ADeposito1"
                            style="color: maroon; font-family: 'Verdana','Arial','Helvetica',sans-serif; font-size: 18px; font-weight: bold; left: 48px; top: 384px; position: absolute; text-decoration: none" text="Administrar Depósito"/>
                        <webuijsf:hyperlink actionExpression="#{VenderP.HPL_AExposicion1_action}" id="HPL_AExposicion1"
                            style="color: maroon; font-family: 'Verdana','Arial','Helvetica',sans-serif; font-size: 18px; font-weight: bold; left: 48px; top: 432px; position: absolute; text-decoration: none" text="Administrar Exposición"/>
                        <webuijsf:hyperlink actionExpression="#{VenderP.HPL_Vender_action}" id="HPL_Vender1"
                            style="color: maroon; font-family: 'Verdana','Arial','Helvetica',sans-serif; font-size: 18px; font-weight: bold; left: 48px; top: 480px; position: absolute; text-decoration: none" text="Vender"/>
                        <webuijsf:tabSet id="tabADeposito" mini="true" selected="tabReportes" style="border: 3px dotted orange; background-color: rgb(204, 204, 204); font-family: 'Arial','Helvetica',sans-serif; height: 450px; left: 336px; top: 240px; position: absolute; width: 738px; z-index: 500">
                            <webuijsf:tab actionExpression="#{VenderP.tabCUsuario_action}" id="tabVender1" style="font-size: 12px" text="* * VENDER * *">
                                <webuijsf:panelLayout id="layoutPanel1" style="height: 421px; position: relative; width: 741px; -rave-layout: grid">
                                    <webuijsf:alert binding="#{VenderP.alertaProductosinsuficientes}" id="alertaProductosinsuficientes"
                                        style="height: 46px; left: 364px; top: 360px; position: absolute; width: 257px" summary="Productos insuficientes."
                                        type="warning" visible="false"/>
                                    <webuijsf:button actionExpression="#{VenderP.BVENDER_action}" id="BVENDER"
                                        style="font-size: 14px; font-weight: bold; height: 41px; left: 23px; top: 360px; position: absolute; width: 97px" text="Vender"/>
                                    <webuijsf:alert binding="#{VenderP.alertaProductoVendido}" id="alertaProductoVendido"
                                        style="height: 46px; left: 124px; top: 360px; position: absolute; width: 257px" summary="Venta realizada."
                                        type="success" visible="false"/>
                                    <webuijsf:dropDown binding="#{VenderP.product1}" converter="#{VenderP.product1Converter}" id="product1"
                                        items="#{VenderP.productoDataProvider1.options['idproducto,nombre_producto']}"
                                        onChange="webui.suntheme4_2.common.timeoutSubmitForm(this.form, 'tabADeposito:tabVender1:layoutPanel1:product1');"
                                        style="left: 48px; top: 216px; position: absolute" valueChangeListenerExpression="#{VenderP.product1_processValueChange}"/>
                                    <webuijsf:dropDown binding="#{VenderP.product2}" converter="#{VenderP.product2Converter}" id="product2"
                                        items="#{VenderP.productoDataProvider1.options['idproducto,nombre_producto']}"
                                        onChange="webui.suntheme4_2.common.timeoutSubmitForm(this.form, 'tabADeposito:tabVender1:layoutPanel1:product2');"
                                        style="left: 48px; top: 240px; position: absolute" valueChangeListenerExpression="#{VenderP.product2_processValueChange}"/>
                                    <webuijsf:dropDown binding="#{VenderP.product3}" converter="#{VenderP.product3Converter}" id="product3"
                                        items="#{VenderP.productoDataProvider1.options['idproducto,nombre_producto']}"
                                        onChange="webui.suntheme4_2.common.timeoutSubmitForm(this.form, 'tabADeposito:tabVender1:layoutPanel1:product3');"
                                        style="left: 48px; top: 264px; position: absolute" valueChangeListenerExpression="#{VenderP.product3_processValueChange}"/>
                                    <webuijsf:textField binding="#{VenderP.VALU1}" columns="6" id="VALU1" style="left: 504px; top: 216px; position: absolute; text-align: right; vertical-align: middle"/>
                                    <webuijsf:textField binding="#{VenderP.VALU2}" columns="6" id="VALU2" style="left: 504px; top: 240px; position: absolute; text-align: right; vertical-align: middle"/>
                                    <webuijsf:textField binding="#{VenderP.VALU3}" columns="6" id="VALU3" style="left: 504px; top: 264px; position: absolute; text-align: right; vertical-align: middle"/>
                                    <webuijsf:label id="label1"
                                        style="font-size: 12px; height: 24px; left: 48px; top: 168px; position: absolute; text-align: center; vertical-align: middle; width: 70px" text="Producto"/>
                                    <webuijsf:label id="label3"
                                        style="font-size: 12px; height: 24px; left: 504px; top: 168px; position: absolute; text-align: center; vertical-align: middle; width: 46px" text="Valor Unitario"/>
                                    <webuijsf:label id="label4"
                                        style="font-size: 12px; height: 24px; left: 576px; top: 168px; position: absolute; text-align: center; vertical-align: middle; width: 70px" text="Valor Total"/>
                                    <webuijsf:textField binding="#{VenderP.CANT1}" columns="3" id="CANT1" style="left: 432px; top: 216px; position: absolute; text-align: right; vertical-align: middle"/>
                                    <webuijsf:textField binding="#{VenderP.CANT2}" columns="3" id="CANT2" style="left: 432px; top: 240px; position: absolute; text-align: right; vertical-align: middle"/>
                                    <webuijsf:textField binding="#{VenderP.CANT3}" columns="3" id="CANT3" style="left: 432px; top: 264px; position: absolute; text-align: right; vertical-align: middle"/>
                                    <webuijsf:label id="label5"
                                        style="font-size: 12px; height: 24px; left: 408px; top: 168px; position: absolute; text-align: center; vertical-align: middle; width: 70px" text="Cantidad"/>
                                    <webuijsf:staticText binding="#{VenderP.VALTO1}" id="VALTO1" style="height: 22px; left: 576px; top: 216px; position: absolute; text-align: right; width: 72px"/>
                                    <webuijsf:staticText binding="#{VenderP.VALTO2}" id="VALTO2" style="height: 22px; left: 576px; top: 240px; position: absolute; text-align: right; width: 72px"/>
                                    <webuijsf:staticText binding="#{VenderP.VALTO3}" id="VALTO3" style="height: 22px; left: 576px; top: 264px; position: absolute; text-align: right; width: 72px"/>
                                    <webuijsf:staticText binding="#{VenderP.DES1}" id="DES1" style="font-size: 10px; font-weight: bold; height: 24px; left: 192px; top: 216px; position: absolute; text-align: justify; width: 190px"/>
                                    <webuijsf:staticText binding="#{VenderP.DES3}" id="DES3" style="font-size: 10px; font-weight: bold; height: 24px; left: 192px; top: 264px; position: absolute; width: 190px"/>
                                    <webuijsf:staticText binding="#{VenderP.DES2}" id="DES2" style="font-size: 10px; font-weight: bold; height: 24px; left: 192px; top: 240px; position: absolute; width: 190px"/>
                                    <webuijsf:label id="label2"
                                        style="font-size: 12px; height: 24px; left: 168px; top: 168px; position: absolute; text-align: center; vertical-align: middle; width: 214px" text="Descripción"/>
                                    <webuijsf:label id="label6"
                                        style="height: 24px; left: 504px; top: 288px; position: absolute; text-align: center; vertical-align: middle; width: 46px" text="IVA"/>
                                    <webuijsf:staticText binding="#{VenderP.VALIVA}" id="VALIVA" style="height: 22px; left: 576px; top: 288px; position: absolute; text-align: right; width: 72px"/>
                                    <webuijsf:label id="label7"
                                        style="height: 24px; left: 504px; top: 312px; position: absolute; text-align: center; vertical-align: middle; width: 46px" text="TOTAL:"/>
                                    <webuijsf:staticText binding="#{VenderP.VALTOTAL}" id="VALTOTAL" style="height: 22px; left: 576px; top: 312px; position: absolute; text-align: right; width: 72px"/>
                                    <webuijsf:pageSeparator id="pageSeparator1" style="height: 7px; left: 0px; top: 120px; position: absolute"/>
                                    <webuijsf:label id="label8"
                                        style="font-size: 14px; height: 24px; left: 24px; top: 24px; position: absolute; text-align: left; vertical-align: middle; width: 94px" text="Comprador:"/>
                                    <webuijsf:label id="label9"
                                        style="font-size: 14px; height: 24px; left: 24px; top: 72px; position: absolute; text-align: center; vertical-align: middle; width: 94px" text="Identificación:"/>
                                    <webuijsf:label id="label10"
                                        style="font-size: 14px; height: 24px; left: 24px; top: 120px; position: absolute; text-align: left; vertical-align: middle; width: 94px" text="Telefono:"/>
                                    <webuijsf:textField binding="#{VenderP.TFComprador}" columns="35" id="TFComprador" style="font-size: 14px; left: 120px; top: 24px; position: absolute"/>
                                    <webuijsf:textField binding="#{VenderP.TFIdentiComprador}" columns="16" id="TFIdentiComprador" style="font-size: 14px; left: 144px; top: 72px; position: absolute"/>
                                    <webuijsf:textField binding="#{VenderP.TFTelefonoComprador}" columns="13" id="TFTelefonoComprador" style="font-size: 14px; left: 120px; top: 120px; position: absolute"/>
                                    <webuijsf:label id="label11"
                                        style="font-size: 14px; height: 24px; left: 264px; top: 120px; position: absolute; text-align: left; vertical-align: middle; width: 94px" text="Direccion:"/>
                                    <webuijsf:textField binding="#{VenderP.TFDireccionComprador}" columns="13" id="TFDireccionComprador" style="font-size: 14px; left: 360px; top: 120px; position: absolute"/>
                                </webuijsf:panelLayout>
                            </webuijsf:tab>
                            <webuijsf:tab actionExpression="#{VenderP.tabReportes_action}" id="tabReportes" text="* *REPOTES * *">
                                <webuijsf:panelLayout id="layoutPanel2" style="height: 374px; position: relative; width: 100%; -rave-layout: grid">
                                    <webuijsf:tabSet id="tabSet1" selected="tabRProductos" style="height: 358px; left: 0px; top: 0px; position: absolute; width: 694px">
                                        <webuijsf:tab id="tabRProductos" text="Productos">
                                            <webuijsf:panelLayout id="layoutPanel3" style="height: 321px; position: relative; width: 100%; -rave-layout: grid">
                                                <webuijsf:table augmentTitle="false" id="tablaProductos"
                                                    style="height: 125px; left: 24px; top: 48px; position: absolute" title="Productos" width="600">
                                                    <webuijsf:tableRowGroup id="tableRowGroup1" rows="5" sourceData="#{VenderP.productoDataProvider}" sourceVar="currentRow">
                                                        <webuijsf:tableColumn headerText="idproducto" id="tableColumn1" sort="idproducto">
                                                            <webuijsf:staticText id="staticText1" text="#{currentRow.value['idproducto']}"/>
                                                        </webuijsf:tableColumn>
                                                        <webuijsf:tableColumn headerText="nombre_producto" id="tableColumn2" sort="nombre_producto">
                                                            <webuijsf:staticText id="staticText2" text="#{currentRow.value['nombre_producto']}"/>
                                                        </webuijsf:tableColumn>
                                                        <webuijsf:tableColumn headerText="descripcion" id="tableColumn5" sort="descripcion">
                                                            <webuijsf:staticText id="staticText4" text="#{currentRow.value['descripcion']}"/>
                                                        </webuijsf:tableColumn>
                                                        <webuijsf:tableColumn headerText="cantidad" id="tableColumn6" sort="cantidad">
                                                            <webuijsf:staticText id="staticText5" text="#{currentRow.value['cantidad']}"/>
                                                        </webuijsf:tableColumn>
                                                    </webuijsf:tableRowGroup>
                                                </webuijsf:table>
                                            </webuijsf:panelLayout>
                                        </webuijsf:tab>
                                        <webuijsf:tab id="tabRUsuarios" text="Usuarios">
                                            <webuijsf:panelLayout id="layoutPanel4" style="height: 321px; position: relative; width: 100%; -rave-layout: grid">
                                                <webuijsf:table augmentTitle="false" id="tablausuarios"
                                                    style="left: 24px; top: 48px; position: absolute; width: 600px" title="Usuarios" width="600">
                                                    <webuijsf:tableRowGroup id="tableRowGroup2" rows="5" sourceData="#{VenderP.usuarioDataProvider}" sourceVar="currentRow">
                                                        <webuijsf:tableColumn headerText="username" id="tableColumn3" sort="username">
                                                            <webuijsf:staticText id="staticText3" text="#{currentRow.value['username']}"/>
                                                        </webuijsf:tableColumn>
                                                        <webuijsf:tableColumn headerText="nombres_usuario" id="tableColumn4" sort="nombres_usuario">
                                                            <webuijsf:staticText id="staticText6" text="#{currentRow.value['nombres_usuario']}"/>
                                                        </webuijsf:tableColumn>
                                                        <webuijsf:tableColumn headerText="apellidos_usuario" id="tableColumn7" sort="apellidos_usuario">
                                                            <webuijsf:staticText id="staticText7" text="#{currentRow.value['apellidos_usuario']}"/>
                                                        </webuijsf:tableColumn>
                                                        <webuijsf:tableColumn headerText="tipo_usuario" id="tableColumn8" sort="tipo_usuario">
                                                            <webuijsf:staticText id="staticText8" text="#{currentRow.value['tipo_usuario']}"/>
                                                        </webuijsf:tableColumn>
                                                    </webuijsf:tableRowGroup>
                                                </webuijsf:table>
                                            </webuijsf:panelLayout>
                                        </webuijsf:tab>
                                        <webuijsf:tab id="tabRSocios" text="Socio">
                                            <webuijsf:panelLayout id="layoutPanel5" style="height: 321px; position: relative; width: 100%; -rave-layout: grid">
                                                <webuijsf:table augmentTitle="false" id="tablasocio" style="left: 24px; top: 48px; position: absolute"
                                                    title="Socio" width="672">
                                                    <webuijsf:tableRowGroup id="tableRowGroup3" rows="5" sourceData="#{VenderP.socioDataProvider}" sourceVar="currentRow">
                                                        <webuijsf:tableColumn headerText="cedula" id="tableColumn9" sort="cedula">
                                                            <webuijsf:staticText id="staticText9" text="#{currentRow.value['cedula']}"/>
                                                        </webuijsf:tableColumn>
                                                        <webuijsf:tableColumn headerText="nombre_socio" id="tableColumn10" sort="nombre_socio">
                                                            <webuijsf:staticText id="staticText10" text="#{currentRow.value['nombre_socio']}"/>
                                                        </webuijsf:tableColumn>
                                                        <webuijsf:tableColumn headerText="apellido_socio" id="tableColumn11" sort="apellido_socio">
                                                            <webuijsf:staticText id="staticText11" text="#{currentRow.value['apellido_socio']}"/>
                                                        </webuijsf:tableColumn>
                                                        <webuijsf:tableColumn headerText="telefono_socio" id="tableColumn12" sort="telefono_socio">
                                                            <webuijsf:staticText id="staticText12" text="#{currentRow.value['telefono_socio']}"/>
                                                        </webuijsf:tableColumn>
                                                        <webuijsf:tableColumn headerText="direccion_socio" id="tableColumn13" sort="direccion_socio">
                                                            <webuijsf:staticText id="staticText13" text="#{currentRow.value['direccion_socio']}"/>
                                                        </webuijsf:tableColumn>
                                                    </webuijsf:tableRowGroup>
                                                </webuijsf:table>
                                            </webuijsf:panelLayout>
                                        </webuijsf:tab>
                                    </webuijsf:tabSet>
                                </webuijsf:panelLayout>
                            </webuijsf:tab>
                        </webuijsf:tabSet>
                        <webuijsf:image id="image1" style="left: 48px; top: 0px; position: absolute" url="/resources/ARRIBA.png"/>
                    </webuijsf:form>
                </webuijsf:body>
            </webuijsf:html>
        </webuijsf:page>
    </f:view>
</jsp:root>
